<%@page import="com.mmy.domain.car.TCarBase"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<title>车辆信息</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>车辆信息</h2>			
		</div>
	</header>
	<section class="container">
	

			<div>
				<a href="carorg" >车公司信息</a> | 
				<a href="cartype" >车型信息</a> | 
				<a href="carbase" >车辆信息</a> | 
				<a href="carplan" >车辆计划</a> 
				<hr style="FILTER: alpha(opacity=100,finishopacity=0,style=3); margin: 15px; " width=100%; color=#F9F6E5 SIZE=3></h>
				
				<form action="updatecarbase" method="post" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>修改车辆信息
						</h4>
				<div >
				<table class="info-table" >
					
				<tr>
					<th>车公司名称</th>
					<td>
						<input type="hidden" name="CarID"  value="${tCarBase.getCarID()}" >
						<select class="input-select-vlign" name="OrgID" >
								<option style="display: none;">请选择</option>
							<c:forEach var="co" items="${carorglist}">
								<option value="${co.getOrgID()}">${co.getOrgName()}</option>
							</c:forEach>	
						</select>
					</td>
					<th>车型名称</th>
					<td>
						<select class="input-select-vlign" name="TypeID" >
								<option style="display: none;">请选择</option>
							<c:forEach var="co" items="${cartypelist}">
								<option value="${co.getTypeID()}">${co.getTypeName()}</option>
							</c:forEach>	
						</select>
					</td>
				</tr>
				<tr>
					<th>车牌号</th>
					<td>
						<input type="text" name="CarNum" value="${tCarBase.getCarNum()}" maxlength="50" required/><span class="mustWrite">*</span>
					</td>
					<th>品牌</th>
					<td>
						<input type="text" name="CarBrand" value="${tCarBase.getCarBrand()}" maxlength="50" required/><span class="mustWrite">*</span>
					</td>
				</tr>
				<tr>
					<th>司机姓名</th>
					<td>
						<input type="text" name="DriverName" value="${tCarBase.getDriverName()}" maxlength="5" required/><span class="mustWrite">*</span>
					</td>
					<th>电话</th>
					<td>
						<input type="text" name="DriverPhone" value="${tCarBase.getDriverPhone()}" maxlength="11" required/><span class="mustWrite">*</span>
					</td>
				</tr>
				<tr>
					<th>三年无事故</th>
					<td>
						<select class="input-select-vlign" name="SafeYear" >
								<option style="display: none;">请选择</option>
								<option value="0">无</option>
								<option value="1">有</option>
						</select>
					</td>
					<th>保险</th>
					<td>
						<input type="text" name="CarSafe" value="${tCarBase.getCarSafe()}" maxlength="50" required/><span class="mustWrite">*</span>
					</td>
				</tr>
				<tr>
					<th>使用年限</th>
					<td>
						<input type="text" name="CarYear" value="${tCarBase.getCarYear()}" maxlength="50" required/><span class="mustWrite">*</span>
					</td>
					<th>马力</th>
					<td>
						<input type="text" name="Power" value="${tCarBase.getPower()}" maxlength="50" required/><span class="mustWrite">*</span>
					</td>
				</tr>
				<tr>
					<th>备注</th>
					<td colspan="3">
						<textarea name="Memo" maxlength="256" >${tCarBase.getMemo()}</textarea>
					</td>
				</tr>	
					
				</table>
				<center>
				<input type="submit" class="btn" value="保存" />
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
				</center> 
				
							
							
				</div>
				</form>
			</div>
			</section>
			</article>
			</main>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		
 
<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>

</html>